package com.example.zrdemo1.pojo;

import org.springframework.stereotype.Component;

import java.time.LocalDateTime;
import java.util.Date;

@Component
public class User {

    private Integer uid;
    private String userName;
    private String sex;
    private String grade;
    private String major;
    private String hometown;
    private String photo;
    private String introduce;
    private String vx;
    private String token;
    private Integer isdeleted;
    private  Integer addNum;
    private  String ipAdrr;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    @Override
    public String toString() {
        return "User{" +
                "uid=" + uid +
                ", userName='" + userName + '\'' +
                ", sex='" + sex + '\'' +
                ", grade='" + grade + '\'' +
                ", major='" + major + '\'' +
                ", hometown='" + hometown + '\'' +
                ", photo='" + photo + '\'' +
                ", introduce='" + introduce + '\'' +
                ", vx='" + vx + '\'' +
                ", token='" + token + '\'' +
                ", isdeleted=" + isdeleted +
                ", addNum=" + addNum +
                ", ipAdrr='" + ipAdrr + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }

    public Integer getIsdeleted() {
        return isdeleted;
    }

    public void setIsdeleted(Integer isdeleted) {
        this.isdeleted = isdeleted;
    }

    public Integer getAddNum() {
        return addNum;
    }

    public void setAddNum(Integer addNum) {
        this.addNum = addNum;
    }

    public String getIpAdrr() {
        return ipAdrr;
    }

    public void setIpAdrr(String ipAdrr) {
        this.ipAdrr = ipAdrr;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }



    public User() {
    }

    public User(String userName, String sex, String grade, String major, String hometown, String photo, String introduce, String vx) {
        this.userName = userName;
        this.sex = sex;
        this.grade = grade;
        this.major = major;
        this.hometown = hometown;
        this.photo = photo;
        this.introduce = introduce;
        this.vx = vx;
    }


    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public String getHometown() {
        return hometown;
    }

    public void setHometown(String hometown) {
        this.hometown = hometown;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public String getIntroduce() {
        return introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }

    public String getVx() {
        return vx;
    }

    public void setVx(String vx) {
        this.vx = vx;
    }
}
